package com.example.demo.demos.asterisk;


import java.io.IOException;

//电话
public class asterisk  {

//    public static void main(String[] args) throws AuthenticationFailedException, IOException, TimeoutException {
//
//        ManagerConnection con = new ManagerConnectionFactory("210.12.51.226",50380,
//                "admin", "freepbx_amp111").createManagerConnection();
//        con.login();
//        OriginateAction action = new OriginateAction();
//        action.setActionId("Originate");
//        action.setChannel("SIP/801");
//        action.setExten("804");
//        action.setContext("from-internal");
//        action.setPriority(1);
//        action.setTimeout(30000);
//        action.setCallerId("74125");
//        action.setAsync(true);
//        ManagerResponse managerResponse = con.sendAction(action);
////        con.addEventListener(ad->{
////
////        });
//        String uniqueId = managerResponse.getMessage();
//
//    }
}
